/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.bean;

import java.util.Date;
import java.util.Map;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * shSmsRecord
 * 
 * @author KongXiangyu
 * @since 2015-09-07
 */
public class ShSmsRecord extends BaseDomain {
	private static final long serialVersionUID = 1L;
	private Long typeId;
	private String mobile;
	private String content;
	private Integer status; // 1、成功 2、失败 3、处理中 4、发送中
	private Date gmtCreate;
	private Date gmtModify;
	private String otherId; // 其他关联ID，比如平台用户、系统用户（根据类型来判断）
	private String urid; // 短信发送后，返回的唯一ID
	private String errorMsg; // 短信错误信息
	private Date errorDate; // 短信错误日期
	private Integer isValidate; // 是否被验证 1 被验证，0 未被验证 默认为 0
	private String captcha; // 验证码

	private Long residenceId;
	private String residenceName;

	/** 用户传递 */
	private Map<String, String> templetContent;

	/** 是否使用模板 */
	private boolean isTemplet;

	// =====
	private String typeName;

	public ShSmsRecord() {
		// 默认无参构造方法
	}

	public String getOtherId() {
		return otherId;
	}

	public void setOtherId(String otherId) {
		this.otherId = otherId;
	}

	public String getUrid() {
		return urid;
	}

	public void setUrid(String urid) {
		this.urid = urid;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Date getErrorDate() {
		return errorDate;
	}

	public void setErrorDate(Date errorDate) {
		this.errorDate = errorDate;
	}

	/**
	 * 获取 typeId
	 * 
	 * @return
	 */
	public Long getTypeId() {
		return typeId;
	}

	/**
	 * 设置 typeId
	 * 
	 * @param typeId
	 */
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	/**
	 * 获取 mobile
	 * 
	 * @return
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * 设置 mobile
	 * 
	 * @param mobile
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * 获取 content
	 * 
	 * @return
	 */
	public String getContent() {
		return content;
	}

	/**
	 * 设置 content
	 * 
	 * @param content
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * 获取 status
	 * 
	 * @return
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置 status
	 * 
	 * @param status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取 gmtCreate
	 * 
	 * @return
	 */
	public Date getGmtCreate() {
		return gmtCreate;
	}

	/**
	 * 设置 gmtCreate
	 * 
	 * @param gmtCreate
	 */
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * 获取 gmtModify
	 * 
	 * @return
	 */
	public Date getGmtModify() {
		return gmtModify;
	}

	/**
	 * 设置 gmtModify
	 * 
	 * @param gmtModify
	 */
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Map<String, String> getTempletContent() {
		return templetContent;
	}

	public void setTempletContent(Map<String, String> templetContent) {
		this.templetContent = templetContent;
	}

	public boolean isTemplet() {
		return isTemplet;
	}

	public void setTemplet(boolean isTemplet) {
		this.isTemplet = isTemplet;
	}

	public Integer getIsValidate() {
		return isValidate;
	}

	public void setIsValidate(Integer isValidate) {
		this.isValidate = isValidate;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public Long getResidenceId() {
		return residenceId;
	}

	public void setResidenceId(Long residenceId) {
		this.residenceId = residenceId;
	}

	/**
	 * @return 
	 */
	public String getResidenceName() {
		return residenceName;
	}
	
	/**
	 * @param 
	 */
	public void setResidenceName(String residenceName) {
		this.residenceName = residenceName;
	}

}